package service;

import org.springframework.web.bind.annotation.*;
import vo.ResponseData;

/**
 * @program: sporadic
 * @description:
 * @author: LHD   QQ:1727865856
 * @create: 2019-11-01 08:51
 **/
public interface AlipayService {
    @GetMapping("/alipay/test")
    @ResponseBody
    String test();

    @PostMapping("/alipay/pay")
    @ResponseBody
    ResponseData<String> alipay(@RequestParam("paymentCode") String paymentCode, @RequestParam("orderNo") String orderNo);

    @GetMapping("/alipay/query")
    @ResponseBody
    String payquery(@RequestParam("orderNo") String orderNo);

    @PostMapping("/alipay/refund")
    @ResponseBody
    String refund(@RequestParam("orderNo") String orderNo);

    @PostMapping("/alipay/rqpay")
    @ResponseBody
    ResponseData<String> qrpay(@RequestParam("orderNo") String orderno);

    @GetMapping("/alipay/queryQrpay")
    @ResponseBody
    ResponseData<String> queryQrpay(@RequestParam("orderNo") String orderno);
}
